//
//  InterestCell.swift
//  day05
//
//  Created by 杨绍鑫 on 2018/9/9.
//  Copyright © 2018年 crcnet. All rights reserved.
//

import UIKit

class InterestCell: UICollectionViewCell {
    
    @IBOutlet weak var featrueImageView: UIImageView!
    @IBOutlet weak var titleLable: UILabel!
    
    var interest : Interest!{
        didSet{
            updataUI()
        }
    }
    
    func updataUI() {
        titleLable.text = interest.title
        featrueImageView.image = interest.featureImage
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        self.layer.cornerRadius = 5
        self.clipsToBounds = true
    }
//    override init(frame: CGRect) {
//        super.init(frame: frame)
//    }
//    
//    required init?(coder aDecoder: NSCoder) {
//        fatalError("init(coder:) has not been implemented")
//    }
}
